<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    function removeDecimalZeros(num) {
        return num.replace(/(?:\.0*|(\.\d+?)0+)$/, "$1");
    }

    console.log(removeDecimalZeros('20.00'))
</script>
